import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class Test {

    public static void main(String[] args) {
        System.out.println(LocalDate.parse("2000-01-01", DateTimeFormatter.ofPattern("yyyy-MM-dd")).getYear());
    }
}
